import axios from '@/axios';

// 商机列表
export function businessList(data) {
    return axios({
        url: '/business/business-list',
        method: 'post',
        data
    })
}

// 创建商机
export function createBusiness(data) {
    return axios({
        url: '/business/create-business',
        method: 'post',
        data
    })
}

// 添加跟进记录
export function addFollow(data) {
    return axios({
        url: '/business/add-follow',
        method: 'post',
        data
    })
}

// 跟进记录
export function followList(data) {
    return axios({
        url: '/business/follow-list',
        method: 'post',
        data
    })
}

// 添加待办信息
export function addSomething(data) {
    return axios({
        url: '/business/add-something',
        method: 'post',
        data
    })
}

// 代办信息
export function somethingLog(data) {
    return axios({
        url: '/business/something-log',
        method: 'post',
        data
    })
}

// 日志
export function userLog(data) {
    return axios({
        url: '/business/log',
        method: 'post',
        data
    })
}

// 修改状态
export function changeStatus(data) {
    return axios({
        url: '/business/change-status',
        method: 'post',
        data
    })
}

// 商机详情
export function infos(data) {
    return axios({
        url: '/business/infos',
        method: 'post',
        data
    })
}

// 删除商机
export function delBusiness(data) {
    return axios({
        url: '/business/del-business',
        method: 'post',
        data
    })
}